package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.TestDetail;
import com.woniu.service.vo.TestPageVo;
import com.woniu.service.vo.TestVo;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author D
 * @since 2023-03-27 08:24:57
 */
public interface TestDetailService extends IService<TestDetail> {

    TestVo getTestDetail(Long testId);

    Boolean addTestDetail(Long userCode, TestVo testVo);

    Map<String, String> startTest(Long testId, Long userCode) throws Exception;

    TestPageVo getAllTestDetail(Long userCode, String input, Long current, Long size);



    void closeTest(long parseLong,Long userCode) throws Exception;

    boolean calculateByScore(Long username, Long testId);

    Boolean deleteTestDetail(Long testCode);

    TestVo getOneTestDetail(Long testCode);

    Boolean updateTestDetail(TestVo testVo);
}
